// createStore redux4.2版本已经启用 legacy_createStore 替换
import { legacy_createStore as createStore, applyMiddleware } from "redux";
import { composeWithDevTools } from 'redux-devtools-extension' // redux调试工具
import thunk from 'redux-thunk' // dispatch可以进行异步请求 
import {createLogger} from 'redux-logger';
import Reducer from "./reducer";
const loggerMiddleware = createLogger();
const store = createStore(Reducer,composeWithDevTools(applyMiddleware(thunk,loggerMiddleware)));
export default store;
